package com.shadow.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 并发
 *
 **/
@Getter
public enum ConcurrencyEnum {

    ALLOW("允许", 1),
    PROHIBIT("禁止", 0);

    /** 枚举名称. **/
    @EnumValue
    private final String name;
    /** 枚举值. **/
    @JsonValue
    private final Integer value;

    ConcurrencyEnum(final String name, final Integer value) {
        this.name = name;
        this.value = value;
    }
}
